/*
 * correctorTest.c
 *
 *  Created on: May 1, 2013
 *      Author: koldar
 */

#include "graph.h"
#include "limits.h"
#include <stdio.h>

//TEST DEPRECATO... USA correctorTest2 che e' meglio!
int main(){
	int N=5;
	Pgraph graph;
	graph=initCompleteGraph(&N,10,10,0,*initEdgeGraph(INFINITE,0,0));
	setEdgeGraphByIndexes(graph,0,1,1,0,0);
	setEdgeGraphByIndexes(graph,0,2,INFINITE,0,0);
	setEdgeGraphByIndexes(graph,0,3,1,0,0);
	setEdgeGraphByIndexes(graph,0,4,1,0,0);
	setEdgeGraphByIndexes(graph,1,2,INFINITE,0,0);
	setEdgeGraphByIndexes(graph,1,3,1,0,0);
	setEdgeGraphByIndexes(graph,1,4,INFINITE,0,0);
	setEdgeGraphByIndexes(graph,2,3,1,0,0);
	setEdgeGraphByIndexes(graph,2,4,20,0,0);
	setEdgeGraphByIndexes(graph,3,4,1,0,0);
	printf("controllo le disuguaglianze triangolari...\n");
	graphCorrector(graph);
}
